<?php
 class Pictures extends CI_Model{
    function __construct(){
        parent::__construct();
    }
    
     /** 
     * Insert data for contact
     * @author tien.nguyen
     */
    public function getPictureProductDetail($productId){
        $this->db->where('Visible', 1);
       $this->db->order_by('PictureId', 'ASC');
       $this->db->where('ProductId = '.$productId);
       $query = $this->db->get('pictures');
        
       return $query->result_array(); 
    }
 }
?>